#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
int main()
{
    char str[20],new[20];
    gets(str);
    int ch = strlen(str);
    int i, j,k=0,count=0;
    for (i = 0; i < ch; i++)
        if (str[i] != 'c')
            new[k++] = str[i];
        else
            count++;
    if (count)
        printf("count:%d\n", count);
    else
        printf("No c\n");
    printf("b:");
    for (i = 0; i < k; i++)
        printf("%c", new[i]);
    printf("\nb new:");
    int tmp;
    for(i=1;i<k;i++)
        for(j=0;j<k-i;j++)
            if (new[j] > new[j + 1])
            {
                tmp = new[j];
                new[j] = new[j + 1];
                new[j + 1] = tmp;
            }
    for (i = 0; i < k; i++)
        printf("%c", new[i]);
    return 0;
}
